package metier;

import java.rmi.AccessException;
import java.rmi.RemoteException;
import java.rmi.registry.LocateRegistry;
import java.rmi.registry.Registry;

public class MetierLauncher {

	public static void main(String [] args){
		Registry reg=null;
		try {
			reg = LocateRegistry.createRegistry(2000);
		} catch (RemoteException e1) {
			e1.printStackTrace();
		}
		try {
			reg.rebind("ServeurMetier",new Metier());
			System.out.println("Serveur Metier Lancé");
		} catch (AccessException e) {
			e.printStackTrace();
		} catch (RemoteException e) {
			e.printStackTrace();
		}
	}
}
